
#ifndef SIM_H
#define SIM_H

#include <iostream>
#include <cstdlib>
#include <ctime>
#include "vec3f.h"
#include "GravBody.h"

/*============================================================================*/
class Sim {

	public:
		Sim();
		void start();
		void update();

		GravBody* getGravBody(int index);
		int getNumBodies();

	private:
		double G;
		int numBodies;
		GravBody* bodies;

		long timeNow;
		long timePass;
		long timePrev;
		float timeDT;

		void userInit();

};

#endif
